//package com.feinno.urcs.group.test;
//
//
//import com.feinno.urcs.sipservlet.SipServlet;
//import com.feinno.urcs.sipservlet.test.SipServletTester;
//import com.feinno.urcs.sipservlet.test.TestUE;
//import org.helium.framework.spi.Bootstrap;
//
///**
// * Created by lvmingwei on 5/13/15.
// */
//public class FileServletTester {
//
//
//    private static String conversationId = "JRecb49KJTcWpgJP";
//
//    private static String request = "INVITE sip:rcseconferenceuri@feinno.com SIP/2.0\n" +
//            "From: \"+8616000035186\"<sip:+8616000035186@feinno.com>;tag=-zmkhtzdEuaFg921j4b9d1qS7j\n" +
//            "To: \"rcseconferenceuri\"<sip:rcseconferenceuri@feinno.com>\n" +
//            "P-Preferred-Identity: \"+8616000035186\"<sip:+8616000035186@feinno.com>\n" +
//            "P-Asserted-Identity: \"+8616000035186\"<sip:+8616000035186@feinno.com>\n" +
//            "Contact: <sip:+8616000035186@192.168.1.7:58764;transport=tcp>;+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session\"\n" +
//            "Accept-Contact: *;+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session\"" +
//            ";+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.mnc000.mcc460.gpmanage;vs=1\"\n" +
//            "Allow: INVITE,ACK,BYE,CANCEL,UPDATE,PRACK,SUBSCRIBE,NOTIFY,MESSAGE,REFER\n" +
//            "Supported: 100rel,from-change,norefersub,replaces,timer\n" +
//            "Session-Expires: 3600;refresher=uac\n" +
//            "Min-SE: 600\n" +
//            "Conversation-ID: " + conversationId + "\n" +
//            "Contribution-ID: GSecb49KJTcWpgJP\n" +
//            "Subject: 1902\n" +
//            "Event: conference\n" +
//            "Require: recipient-list-invite\n" +
//            "Content-Type: multipart/mixed;boundary=B6A7570686F6F6E5F706F776572\n" +
//            "Call-ID: -zmkhtzdEuaFf921StOTJ1qS9j@192.168.1.7\n" +
//            "CSeq: 1 INVITE\n" +
//            "Max-Forwards: 70\n" +
//            "User-Agent: CPM-client/OMA1.0 YuLong/1.0\n" +
//            "Via: SIP/2.0/TCP 192.168.1.7:58764;branch=z9hG4bK-zmkhtzdEuaFh921TtOTJ1qS7j;rport\n" +
//            "Content-Length: 858\n" +
//            "\n" +
//            "--B6A7570686F6F6E5F706F776572\n" +
//            "Content-Disposition: recipient-list\n" +
//            "Content-Type: application/resource-lists+xml\n" +
//            "Content-Length: 387\n" +
//            "\n" +
//            "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" +
//            "<resource-lists xmlns=\"urn:ietf:params:xml:ns:resource-lists\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:cp=\"urn:ietf:params:xml:ns:copycontrol\">\n" +
//            "  <list>\n" +
//            "    <entry uri=\"sip:+8616000035189@feinno.com\" cp:copyControl=\"to\" />\n" +
//            "    <entry uri=\"sip:+8616000035184@feinno.com\" cp:copyControl=\"to\" />\n" +
//            "  </list>\n" +
//            "</resource-lists>\n" +
//            "\n" +
//            "--B6A7570686F6F6E5F706F776572\n" +
//            "Content-Type: application/sdp\n" +
//            "\n" +
//            "v=0\n" +
//            "o=- 1994515892 0 IN IP4 192.168.1.7\n" +
//            "s=-\n" +
//            "c=IN IP4 192.168.1.7\n" +
//            "t=0 0\n" +
//            "m=message 9 TCP/MSRP *\n" +
//            "a=setup:active\n" +
//            "a=sendrecv\n" +
//            "a=accept-types:message/cpim\n" +
//            "a=accept-wrapped-types:*\n" +
//            "a=path:msrp://192.168.1.7:9/IQecb49KJTcWpgJP;tcp\n" +
//            "\n" +
//            "--B6A7570686F6F6E5F706F776572--\n";
//
//    public static void main(String[] args) throws Exception {
//        Bootstrap.INSTANCE.addPath("group-servlets-pd/build/resources/test");
//        SipServlet servlet = (SipServlet) Bootstrap.INSTANCE.loadServlet("file-servlet.xml");
//        SipServletTester tester = new SipServletTester(servlet);
//        TestUE ue = tester.getTestUE();
//        ue.sendRequest(request);
//    }
//}
